<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>会员浏览记录</title>
  <link rel="stylesheet" href="../../../../elementUI/index.css">
  <link rel="stylesheet" href="../../../../css/index.css">
</head>
<body>
  <div id="app" class="minWidth">
    <!-- 浏览记录查询 -->
    <el-form :inline="true" :model="formInline" class="demo-form-inline">
      <el-form-item label="审批人">
        <el-input v-model="formInline.user" placeholder="审批人"></el-input>
      </el-form-item>
      <el-form-item label="活动区域">
        <el-select v-model="formInline.region" placeholder="活动区域">
          <el-option label="区域一" value="shanghai"></el-option>
          <el-option label="区域二" value="beijing"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSubmit">查询</el-button>
      </el-form-item>
    </el-form>
    <!-- 浏览记录表格 -->
    <el-table :data="tableData" stripe border height="calc(100vh - 200px)" style="width: 100%">
      <el-table-column label="序号" width="50" type="index">
        <template slot-scope="scope">
          {{ scope.$index + (form.page - 1) * form.limit + 1 }}
        </template>
      </el-table-column>
      <el-table-column label="商品图片" width="125">
        <template slot-scope="scope">
          <el-image style="width: 100px; height: 100px; border-radius: 9px;"  :src="DomainIMG + scope.row.Picture_URL"></el-image>
        </template>
      </el-table-column>
      <el-table-column prop="Article_Name" label="商品名称"></el-table-column>
      <el-table-column prop="Amount" label="商品金额"></el-table-column>
      <el-table-column prop="Browse_Date" label="浏览时间"></el-table-column>
      <el-table-column prop="Store_Name" label="商店名称"></el-table-column>
      <el-table-column prop="Amount" label="商品金额"></el-table-column>
    </el-table>
    <!-- 分页 -->
    <el-pagination 
    style="position: fixed;bottom: 0;" background v-show="total > 0"
    @size-change="handleSizeChange" @current-change="handleCurrentChange"
      :current-page="form.page" :page-sizes="[10,50,100,500,1000]" :page-size="form.limit"
      layout="total, sizes, prev, pager, next, jumper" :total="total">
    </el-pagination>
  </div>
  <!-- 依赖 -->
  <script type="text/javascript" src="../../../../js/jquery-3.6.0.min.js"></script>
  <script type="text/javascript" src="../../../../js/jquery.cookie.js"></script>
  <script type="text/javascript" src="../../../../js/vue.min.js"></script>
  <script type="text/javascript" src="../../../../elementUI/index.js"></script>
  <script type="text/javascript" src="../../../../js/utils.js"></script>
  <script type="text/javascript" src="./js/MemberBrowsingHistory.js"></script>
</body>
</html>